package com.hssy.wululuaplan.service;

import com.hssy.wululuaplan.entity.Student;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hssy.wululuaplan.form.StudentForm;
import com.hssy.wululuaplan.vo.StudentClassVo;
import com.hssy.wululuaplan.vo.StudentVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Mr.Hongtao
 * @since 2024-02-27
 */
public interface StudentService extends IService<Student> {

    Map<String, Object> findStudentListInitial();

    void create(StudentForm form);

    void edit(StudentForm form);

    StudentVo findById(Integer id, String studentName);

    List<StudentClassVo> findHasRemainStudentList(Integer courseId);

    /**
     * 下载学生列表详细信息
     *
     * @param response HttpServletResponse
     * @param mailTo
     */
    void downloadStudentDetailList(String mailTo);

    /**
     * 下载指定学生的上课记录
     * @param studentId 学生id
     */
    void emailToStudentClassRecordList(Integer studentId);

    void deleteStudent(Integer id);
}
